import { gql } from "@apollo/client";
export const GET_ORGS = gql`
  query getOrganizations($page: PageInput!) {
    getOrganizations(page: $page) {
      code
      message
      data {
        id
        orgRoomImg {
          url
        }
        orgFrontImg {
          url
        }
        orgOtherImg {
          url
        }
        name
        logo
        tags
        description
        address
        longitude
        latitude
        tel
        identityCardFrontImg
        identityCardBackImg
        businessLicense
      }
      page {
        pageNum
        pageSize
        total
      }
    }
  }
`;
export const GET_SAMPLE_ORGS = gql`
  query getOrganizations($page: PageInput!, $name:String) {
    getOrganizations(page: $page,name:$name) {
      code
      message
      data {
        id
        name
      }
      page {
        pageNum
        pageSize
        total
      }
    }
  }
`;
export const GET_ORG = gql`
  query getOrganizationInfo($id: String!) {
    getOrganizationInfo(id: $id) {
      code
      message
      data {
        id
        orgRoomImg {
          url
        }
        orgFrontImg {
          url
        }
        orgOtherImg {
          url
        }
        name
        logo
        tags
        description
        address
        longitude
        latitude
        tel
        identityCardFrontImg
        identityCardBackImg
        businessLicense
      }
    }
  }
`;
export const COMMIT_ORG = gql`
  mutation commitOrganization($params: OrganizationInput!,$id: String){
  commitOrganization(params:$params,id:$id){
    code
    message
  }
}
`;
export const DEL_ORG = gql`
mutation deleteOrganization($id: String!){
  deleteOrganization(id:$id){
    code
    message
  }
}
`;
